on Connectivity Changed
Invoked when the device's internet connectivity status changes.
Implementations should use this callback to handle logic that depends on network availability. For example, enabling or disabling features, retrying failed network operations, or updating UI elements to reflect the current connection state.
Note: The determination of "connected" can depend on the underlying monitoring mechanism. It typically indicates that the device has an active network interface and can reach general internet services, but it might not guarantee connectivity to specific endpoints.
Parameters
is Connected
true
if the device is currently connected to the internet, false
otherwise.